package com.origin.src.boot;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class}
//        ,scanBasePackages={"com.origin.src.dep"}
)
//@EnableWebMvc
//@ServletComponentScan
public class XSpringBoot extends SpringBootServletInitializer {


    public static void main(String[] args) {
        SpringApplication.run(XSpringBoot.class, args);
//        servletWebServerApplicationContext.close();
//        servletWebServerApplicationContext.stop();
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return super.configure(builder).sources(XSpringBoot.class);
    }
}
